% GAUTIER LE BIHAN - 2020
% Replication files for "Shocks vs Menu Costs: Patterns of Price Rigidity in an Estimated Multi-Sector 
% Menu-Cost Model" Review of Economics and Statistics
% Compute additional simulated moments for Appendix figure E

clear;
tic
addpath('..\..\Utilities')  

NSectors = 2;
sm = 0.0;


p0=[0]';
mu_c=[0.004:0.0002:0.0085]';
sig_eps=[0.0185:0.00025:0.025]';
rho_a=[0.6946]';
s=size(mu_c,1)+size(sig_eps,1);
param0=[0; 0.00633521405560053; exp(-3.93088893868755) ;0.694600000000000];
s


param=repmat(param0,1,s)';
param(1:size(mu_c),2)=mu_c;
param(size(mu_c)+1:size(mu_c)+size(sig_eps),3)=sig_eps;

for jj=1:s;
    p0=param(jj,1);
    mu_c=param(jj,2);
    sig_eps_a=param(jj,3);
    rho_a=param(jj,4);   
    weight_j=0.57;    
    
    
   [f2, avfracup2,    med2,    interq2, kur2]=geNCalvoPlus_SMM(p0, mu_c, sig_eps_a, rho_a, weight_j);
 
  stat_outsample_19(jj,:)=[param(jj,:) f2 avfracup2      med2    interq2 kur2  ]

  save stat_outsample_19 stat_outsample_19;
end
